package implementations.zuege;

import implementations.lok.Lok;
import implementations.wagen.GueterWagen;
import interfaces.GueterWagenInterface;
import interfaces.GueterZugInterface;
import interfaces.LokInterface;

public class GueterZug extends Zug<GueterWagenInterface> implements
		GueterZugInterface<LokInterface, GueterWagenInterface>
{

	public GueterZug(LokInterface lok)
	{
		super(lok);
	}

	public static void main(String[] args)
	{

		GueterZugInterface<LokInterface, GueterWagenInterface> gueterZug;
		LokInterface lok;

		lok = new Lok();
		gueterZug = new GueterZug(lok);

		gueterZug.add(new GueterWagen());
		gueterZug.add(new GueterWagen());
		gueterZug.add(new GueterWagen());

		System.out.println(gueterZug);

	}

}
